package de.dqi.pong.engine;

/**
 * TODO AI - finish class definition
 * <hr>
 * 
 * <hr><dl><dt>
 * Summary: </dt><br><dd>
 *  
 * </dd><br><dt>
 * Author: </dt><br><dd>
 *  Marius
 * </dd></dl>
 */
public abstract class AI
		implements Runnable {
	
	protected boolean						isLeft;
	protected InitializationNotification	init;
	protected TickNotification				tick;
	
	protected Direction						direction;
	
	final void initialize(InitializationNotification initNote, boolean isLeft) {
		this.isLeft = isLeft;
		this.init = initNote;
	}
	
	final void update(TickNotification tickNote) {
		this.tick = tickNote;
	}
	
	final Direction direction() {
		return direction;
	}
	
}
